<?php

namespace common\entities\cms;

use common\entities\cms\DirEntity;
use common\entities\ContractEntity;

class ArticleOrgEntity extends ContractEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_cms_article_org';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['article_id','org_guid'], 'required'],
            [['article_id'], 'integer'],
            [['org_guid'], 'string']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'article_id' => 'Article Id',
            'org_guid' => 'Org Guid',
            'created_on' => 'Created On'
        ];
    }


}